package com.buydeem.custom;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 *
 * @author zengchao
 * @date 2022-03-10 20:23:35
 */
@PackageScan(basePackages = {"com.buydeem.custom"})
public class App {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(App.class);
        String[] list = context.getBeanDefinitionNames();
        for (String beanDefinitionName : list) {
            System.out.println(beanDefinitionName);
        }
    }
}
